<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/UI/Page/setup_scr_home.c 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_c78dc1806c68fd338fba226975244931.html">UI</a></li><li class="navelem"><a class="el" href="dir_25d44ec6257672254111041d2f097be1.html">Page</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">setup_scr_home.c</div></div>
</div><!--header-->
<div class="contents">
<a href="setup__scr__home_8c.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#include &quot;<a class="code" href="ui_8h.html">ui.h</a>&quot;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;<a class="code" href="ui__event_8h.html">ui_event.h</a>&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="setup__scr__home_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="setup__scr__home_8c.html#a9e86b57f14343f1fdf1b6450fbcdef08">   34</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="setup__scr__home_8c.html#a9e86b57f14343f1fdf1b6450fbcdef08">setup_scr_home</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui)</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>{</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    <span class="comment">// Write codes scr_home</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a> = lv_obj_create(lv_scr_act(), NULL);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a>, LV_HOR_RES_MAX, LV_VER_RES_MAX);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="preprocessor">#if (OPTION_SET_BG == 2) </span><span class="comment">// 选择是否使用图片当桌面背景(注意不要用 PNG 图 充当背景, 这样滑动时会很卡)</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    <span class="keywordflow">if</span> (0 == <a class="code hl_function" href="load__file_8c.html#a2efc2116dbabe389a95c812f9dc6aa03">load_source_to_sdram</a>(<a class="code hl_enumvalue" href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997aefea9eb0772378037221a3f1fe759a76">SPI</a>, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#af94b4b5bb09cde20ab55b0f3d6d76f99">IMG_WALLPAPER</a>].file-&gt;name, <a class="code hl_enumvalue" href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a1e00c983d4be44226a3b1ba10382e3e9">IMG</a>, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#af94b4b5bb09cde20ab55b0f3d6d76f99">IMG_WALLPAPER</a>].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>, <a class="code hl_function" href="mem__sdram_8c.html#ae1630464a6d7686e9e41daf4b38e74a8">sdram_malloc</a>))</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>    {</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>        <span class="comment">// Write codes scr_home_img_bg</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>        ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac79371e1c16255175f509d8a52875c42">scr_home_img_bg</a> = lv_img_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a>, NULL);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>        lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac79371e1c16255175f509d8a52875c42">scr_home_img_bg</a>, 0, 0);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>        lv_img_set_src(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#ac79371e1c16255175f509d8a52875c42">scr_home_img_bg</a>, <a class="code hl_variable" href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a>[<a class="code hl_define" href="image__source_8h.html#af94b4b5bb09cde20ab55b0f3d6d76f99">IMG_WALLPAPER</a>].<a class="code hl_variable" href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img</a>);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>        <span class="comment">/*</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="comment">        lv_img_set_pivot(ui-&gt;scr_home_img_bg, 0, 0);</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="comment">        lv_img_set_angle(ui-&gt;scr_home_img_bg, 0);</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="comment">        lv_obj_set_click(ui-&gt;scr_home_img_bg, true);</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="comment">        */</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>    }</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span><span class="preprocessor">#endif </span><span class="comment">//(OPTION_SET_BG == 2)</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>    <span class="comment">// 只需左右滑动翻页 =&gt; Tabview (注意 : 普通 tab-page 控件包含上下滚动, 但不是翻页)</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>    <span class="comment">// 若需上下滑动翻页 =&gt; Tileview</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>    <span class="comment">// Write codes scr_home_tabview</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a> = lv_tabview_create(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a>, NULL);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    lv_tabview_set_btns_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, LV_TABVIEW_TAB_POS_NONE); <span class="comment">// 隐藏选项卡选择器按钮位置</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>    lv_tabview_set_anim_time(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, 0);                      <span class="comment">// 切换页面时动画时长</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    lv_obj_set_pos(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, 0, 0);</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>    lv_obj_set_size(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, LV_HOR_RES_MAX, LV_VER_RES_MAX);</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    <span class="comment">// tab_home</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a6c822455c3ba88c294f4c62a8f4d8c61">scr_home_tab_home</a> = lv_tabview_add_tab(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, <span class="stringliteral">&quot;tab_home&quot;</span>);</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>    lv_page_set_scrlbar_mode(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a6c822455c3ba88c294f4c62a8f4d8c61">scr_home_tab_home</a>, LV_SCROLLBAR_MODE_OFF); <span class="comment">// 滚动条显示策略-不显示</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    lv_page_set_scrollable_fit(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a6c822455c3ba88c294f4c62a8f4d8c61">scr_home_tab_home</a>, LV_FIT_PARENT);       <span class="comment">// 设置页面大小与父级边缘对齐</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span><span class="comment">//  lv_page_set_scroll_propagation(ui-&gt;scr_home_tab_home, true);            //页面跟随子对象滚动传播</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span><span class="comment">//  lv_page_set_edge_flash(ui-&gt;scr_home_tab_home, true);                    //滑动边缘闪光</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    <span class="comment">// Write codes scr_home_tab_home</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    <a class="code hl_function" href="setup__home__page__home_8c.html#a236ec2e4ba252c597a6c8d695eb5e825">setup_home_page_home</a>(ui);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>    <span class="comment">// tab_m0</span></div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acff0209e8aff7a55c43a3f32ded1f788">scr_home_tab_m0</a> = lv_tabview_add_tab(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, <span class="stringliteral">&quot;tab_m0&quot;</span>);</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>    lv_page_set_scrlbar_mode(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acff0209e8aff7a55c43a3f32ded1f788">scr_home_tab_m0</a>, LV_SCROLLBAR_MODE_OFF); <span class="comment">// 滚动条显示策略-不显示</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    lv_page_set_scrollable_fit(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#acff0209e8aff7a55c43a3f32ded1f788">scr_home_tab_m0</a>, LV_FIT_PARENT);       <span class="comment">// 设置页面大小与父级边缘对齐</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span><span class="comment">//  lv_page_set_scroll_propagation(ui-&gt;scr_home_tab_m0, true);          //页面跟随子对象滚动传播</span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span><span class="comment">//  lv_page_set_edge_flash(ui-&gt;scr_home_tab_m0, true);                  //滑动边缘闪光</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>    <span class="comment">// Write codes scr_home_tab_m0</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>    <a class="code hl_function" href="setup__home__page__m0_8c.html#aa198ac34b1b6fa9f86d497cc3baf1d19">setup_home_page_m0</a>(ui);</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span> </div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    <span class="comment">// tab_m4</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#af429e02400b85680d86bc9f3ca98fc1e">scr_home_tab_m4</a> = lv_tabview_add_tab(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, <span class="stringliteral">&quot;tab_m4&quot;</span>);</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    lv_page_set_scrlbar_mode(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#af429e02400b85680d86bc9f3ca98fc1e">scr_home_tab_m4</a>, LV_SCROLLBAR_MODE_OFF); <span class="comment">// 滚动条显示策略-不显示</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>    lv_page_set_scrollable_fit(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#af429e02400b85680d86bc9f3ca98fc1e">scr_home_tab_m4</a>, LV_FIT_PARENT);       <span class="comment">// 设置页面大小与父级边缘对齐</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span><span class="comment">//  lv_page_set_scroll_propagation(ui-&gt;scr_home_tab_m4, true);          //页面跟随子对象滚动传播</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span><span class="comment">//  lv_page_set_edge_flash(ui-&gt;scr_home_tab_m4, true);                  //滑动边缘闪光</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>    <span class="comment">// Write codes scr_home_tab_m4</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>    <a class="code hl_function" href="setup__home__page__m4_8c.html#afb77653567b2b50aef74a97266462f0c">setup_home_page_m4</a>(ui);</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>    <span class="comment">// tab_pd</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a443081e2c977879eaf12f954fffa7e04">scr_home_tab_pd</a> = lv_tabview_add_tab(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, <span class="stringliteral">&quot;tab_pd&quot;</span>);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>    lv_page_set_scrlbar_mode(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a443081e2c977879eaf12f954fffa7e04">scr_home_tab_pd</a>, LV_SCROLLBAR_MODE_OFF); <span class="comment">// 滚动条显示策略-不显示</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>    lv_page_set_scrollable_fit(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a443081e2c977879eaf12f954fffa7e04">scr_home_tab_pd</a>, LV_FIT_PARENT);       <span class="comment">// 设置页面大小与父级边缘对齐</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span><span class="comment">//  lv_page_set_scroll_propagation(ui-&gt;scr_home_tab_pd, true);          //页面跟随子对象滚动传播</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span><span class="comment">//  lv_page_set_edge_flash(ui-&gt;scr_home_tab_pd, true);                  //滑动边缘闪光</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>    <span class="comment">// Write codes scr_home_tab_pd</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>    <a class="code hl_function" href="setup__home__page__pd_8c.html#ab3e09574fd12d91ac7158b266241f565">setup_home_page_pd</a>(ui);</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>    <span class="comment">// tab_pp</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a> = lv_tabview_add_tab(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, <span class="stringliteral">&quot;tab_pp&quot;</span>);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>    lv_page_set_scrlbar_mode(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a>, LV_SCROLLBAR_MODE_OFF); <span class="comment">// 滚动条显示策略-不显示</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span>    lv_page_set_scrollable_fit(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">scr_home_tab_pp</a>, LV_FIT_PARENT);       <span class="comment">// 设置页面大小与父级边缘对齐</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span><span class="comment">//  lv_page_set_scroll_propagation(ui-&gt;scr_home_tab_pp, true);          //页面跟随子对象滚动传播</span></div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span><span class="comment">//  lv_page_set_edge_flash(ui-&gt;scr_home_tab_pp, true);                  //滑动边缘闪光</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    <span class="comment">// Write codes scr_home_tab_pp</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>    <a class="code hl_function" href="setup__home__page__pp_8c.html#a2dc049611b8a6a5e649913c9ead4dc72">setup_home_page_pp</a>(ui);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>    <span class="comment">// Set Style for scr</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>    <a class="code hl_function" href="setup__scr__home_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(ui);</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    <span class="comment">// Init events for scr</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    <a class="code hl_function" href="ui__event_8c.html#aab07f167804a29f9a34de078552c2fee">events_init_scr_home</a>(ui);</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span> </div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>    <span class="comment">// The First Show Page</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>    ui-&gt;<a class="code hl_variable" href="structlv__ui.html#adaa8f29c768d6331f76fbc8a3489a02c">scr_switch_flag</a> = <a class="code hl_enumvalue" href="ui_8h.html#a982d37ceeb963441075094196ed5994ba8f280224da64e98f2d52d50ec43bc197">HOME</a>;</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span>    lv_tabview_set_tab_act(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, ui-&gt;<a class="code hl_variable" href="structlv__ui.html#adaa8f29c768d6331f76fbc8a3489a02c">scr_switch_flag</a>, LV_ANIM_OFF);</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno">  123</span> </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>    <span class="comment">/* video_setting */</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span>    <a class="code hl_function" href="load__mv_8c.html#a3ff08970bdf7f8e28122786eac11d6d3">video_set_loop</a>(0, 1);</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>    <a class="code hl_define" href="ui_8h.html#a60d66b4253393d5efcff7f9b3b61b187">PLAY_MV</a>(<a class="code hl_define" href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a>(LV_HOR_RES_MAX, <a class="code hl_define" href="image__source_8h.html#a72e2736c8cdd913dd797ec89b5ade661">FLASH_VIDEO_AREA_W</a>, 1),</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>            ((<a class="code hl_define" href="image__source_8h.html#a1285823c747bb7f5dbaaaf6fe7b25695">FLASH_VIDEO_AREA_H</a> &gt; ICON_LOGO_H) ?</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>            <a class="code hl_define" href="ui_8h.html#af3e9088ad151a8970bb55f57d35a66da">GET_Y</a>(0, 0, (ICON_HOME_H + ICON_LOGO_H) / 2, <a class="code hl_define" href="ui_8h.html#af5ff5bf99f6040aa647643d0578071d6">GET_OFFSET_Y</a>(LV_VER_RES_MAX, (ICON_HOME_H + ICON_LOGO_H) / 2, 2))</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>            : ((ICON_LOGO_H - <a class="code hl_define" href="image__source_8h.html#a1285823c747bb7f5dbaaaf6fe7b25695">FLASH_VIDEO_AREA_H</a>) / 2) - lv_obj_get_y(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cc771247e69bbcd2d61a76202df54f5">scr_home_tab_home_imgbtn_logo</a>)));</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    </div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>}</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span> </div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="setup__scr__home_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">  133</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="setup__scr__home_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a>(<a class="code hl_struct" href="structlv__ui.html">lv_ui</a> *ui)</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>{</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span>    lv_obj_set_style_local_radius(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span>    lv_obj_set_style_local_border_width(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>    lv_obj_set_style_local_outline_width(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>    <span class="comment">// 黑色背景</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>    lv_obj_set_style_local_bg_color(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>    <span class="comment">// 透明-LV_OPA_TRANSP      不透明-LV_OPA_COVER</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>    lv_obj_set_style_local_bg_opa(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">scr_home</a>, LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_COVER);</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>    <span class="comment">// Write style LV_TABVIEW_PART_BG for scr_home_tabview</span></div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>    <span class="keyword">static</span> lv_style_t style_scr_home_tabview_bg;</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>    lv_style_reset(&amp;style_scr_home_tabview_bg);</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>    <span class="comment">// Write style state: LV_STATE_DEFAULT for style_scr_home_tabview_bg</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>    lv_style_set_bg_color(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>    lv_style_set_bg_grad_color(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>    lv_style_set_bg_grad_dir(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, LV_GRAD_DIR_NONE);</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span>    lv_style_set_bg_opa(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno">  152</span>    lv_style_set_shadow_color(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno">  153</span>    lv_style_set_shadow_width(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>    lv_style_set_shadow_opa(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>    lv_style_set_shadow_spread(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>    lv_style_set_shadow_ofs_x(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>    lv_style_set_shadow_ofs_y(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span>    lv_style_set_border_color(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>    lv_style_set_border_width(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span>    lv_style_set_border_opa(&amp;style_scr_home_tabview_bg, LV_STATE_DEFAULT, 0);</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, LV_TABVIEW_PART_BG, &amp;style_scr_home_tabview_bg);</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>    <span class="comment">// Write style LV_TABVIEW_PART_INDIC for scr_home_tabview</span></div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>    <span class="keyword">static</span> lv_style_t style_scr_home_tabview_indic;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>    lv_style_reset(&amp;style_scr_home_tabview_indic);</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>    <span class="comment">// Write style state: LV_STATE_DEFAULT for style_scr_home_tabview_indic</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span>    lv_style_set_bg_color(&amp;style_scr_home_tabview_indic, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno">  169</span>    lv_style_set_bg_grad_color(&amp;style_scr_home_tabview_indic, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno">  170</span>    lv_style_set_bg_grad_dir(&amp;style_scr_home_tabview_indic, LV_STATE_DEFAULT, LV_GRAD_DIR_NONE);</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span>    lv_style_set_bg_opa(&amp;style_scr_home_tabview_indic, LV_STATE_DEFAULT, 255);</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno">  172</span>    lv_obj_add_style(ui-&gt;<a class="code hl_variable" href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">scr_home_tabview</a>, LV_TABVIEW_PART_INDIC, &amp;style_scr_home_tabview_indic);</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>}</div>
<div class="ttc" id="aimage__source_8c_html_aad0609e68f74eb0a9760a3fc0f604794"><div class="ttname"><a href="image__source_8c.html#aad0609e68f74eb0a9760a3fc0f604794">Image_Table</a></div><div class="ttdeci">img_hash_t Image_Table[IMG_MAX_NUM]</div><div class="ttdoc">图片资源文件映射表</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8c_source.html#l00025">image_source.c:25</a></div></div>
<div class="ttc" id="aimage__source_8h_html_a1285823c747bb7f5dbaaaf6fe7b25695"><div class="ttname"><a href="image__source_8h.html#a1285823c747bb7f5dbaaaf6fe7b25695">FLASH_VIDEO_AREA_H</a></div><div class="ttdeci">#define FLASH_VIDEO_AREA_H</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00125">image_source.h:125</a></div></div>
<div class="ttc" id="aimage__source_8h_html_a72e2736c8cdd913dd797ec89b5ade661"><div class="ttname"><a href="image__source_8h.html#a72e2736c8cdd913dd797ec89b5ade661">FLASH_VIDEO_AREA_W</a></div><div class="ttdeci">#define FLASH_VIDEO_AREA_W</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00124">image_source.h:124</a></div></div>
<div class="ttc" id="aimage__source_8h_html_af94b4b5bb09cde20ab55b0f3d6d76f99"><div class="ttname"><a href="image__source_8h.html#af94b4b5bb09cde20ab55b0f3d6d76f99">IMG_WALLPAPER</a></div><div class="ttdeci">#define IMG_WALLPAPER</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00042">image_source.h:42</a></div></div>
<div class="ttc" id="aload__file_8c_html_a2efc2116dbabe389a95c812f9dc6aa03"><div class="ttname"><a href="load__file_8c.html#a2efc2116dbabe389a95c812f9dc6aa03">load_source_to_sdram</a></div><div class="ttdeci">uint8_t load_source_to_sdram(disk_t disk, const char *path, resource_t type, void *res_struct, void *(*ram_malloc)(size_t))</div><div class="ttdoc">加载资源至 SDRAM 内</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8c_source.html#l00289">load_file.c:289</a></div></div>
<div class="ttc" id="aload__file_8h_html_a044f73b36811553cd877767a7df11f83a1e00c983d4be44226a3b1ba10382e3e9"><div class="ttname"><a href="load__file_8h.html#a044f73b36811553cd877767a7df11f83a1e00c983d4be44226a3b1ba10382e3e9">IMG</a></div><div class="ttdeci">@ IMG</div><div class="ttdoc">jpg 图 / 通过 PC 端工具转换图片生成的 bin</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00050">load_file.h:50</a></div></div>
<div class="ttc" id="aload__file_8h_html_a44edb5dd69763758dda6af4dd162c997aefea9eb0772378037221a3f1fe759a76"><div class="ttname"><a href="load__file_8h.html#a44edb5dd69763758dda6af4dd162c997aefea9eb0772378037221a3f1fe759a76">SPI</a></div><div class="ttdeci">@ SPI</div><div class="ttdoc">SPI-Flash</div><div class="ttdef"><b>Definition:</b> <a href="load__file_8h_source.html#l00042">load_file.h:42</a></div></div>
<div class="ttc" id="aload__mv_8c_html_a3ff08970bdf7f8e28122786eac11d6d3"><div class="ttname"><a href="load__mv_8c.html#a3ff08970bdf7f8e28122786eac11d6d3">video_set_loop</a></div><div class="ttdeci">void video_set_loop(const uint32_t times, const uint32_t max)</div><div class="ttdoc">设置视频循环播放次数</div><div class="ttdef"><b>Definition:</b> <a href="load__mv_8c_source.html#l00431">load_mv.c:431</a></div></div>
<div class="ttc" id="amem__sdram_8c_html_ae1630464a6d7686e9e41daf4b38e74a8"><div class="ttname"><a href="mem__sdram_8c.html#ae1630464a6d7686e9e41daf4b38e74a8">sdram_malloc</a></div><div class="ttdeci">void * sdram_malloc(size_t size)</div><div class="ttdoc">申请一块内存</div><div class="ttdef"><b>Definition:</b> <a href="mem__sdram_8c_source.html#l00130">mem_sdram.c:130</a></div></div>
<div class="ttc" id="asetup__home__page__home_8c_html_a236ec2e4ba252c597a6c8d695eb5e825"><div class="ttname"><a href="setup__home__page__home_8c.html#a236ec2e4ba252c597a6c8d695eb5e825">setup_home_page_home</a></div><div class="ttdeci">void setup_home_page_home(lv_ui *ui)</div><div class="ttdoc">创建 Home 页</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__home_8c_source.html#l00034">setup_home_page_home.c:34</a></div></div>
<div class="ttc" id="asetup__home__page__m0_8c_html_aa198ac34b1b6fa9f86d497cc3baf1d19"><div class="ttname"><a href="setup__home__page__m0_8c.html#aa198ac34b1b6fa9f86d497cc3baf1d19">setup_home_page_m0</a></div><div class="ttdeci">void setup_home_page_m0(lv_ui *ui)</div><div class="ttdoc">创建 M0 页</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__m0_8c_source.html#l00034">setup_home_page_m0.c:34</a></div></div>
<div class="ttc" id="asetup__home__page__m4_8c_html_afb77653567b2b50aef74a97266462f0c"><div class="ttname"><a href="setup__home__page__m4_8c.html#afb77653567b2b50aef74a97266462f0c">setup_home_page_m4</a></div><div class="ttdeci">void setup_home_page_m4(lv_ui *ui)</div><div class="ttdoc">创建 M4 页</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__m4_8c_source.html#l00034">setup_home_page_m4.c:34</a></div></div>
<div class="ttc" id="asetup__home__page__pd_8c_html_ab3e09574fd12d91ac7158b266241f565"><div class="ttname"><a href="setup__home__page__pd_8c.html#ab3e09574fd12d91ac7158b266241f565">setup_home_page_pd</a></div><div class="ttdeci">void setup_home_page_pd(lv_ui *ui)</div><div class="ttdoc">创建 Product 页</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__pd_8c_source.html#l00034">setup_home_page_pd.c:34</a></div></div>
<div class="ttc" id="asetup__home__page__pp_8c_html_a2dc049611b8a6a5e649913c9ead4dc72"><div class="ttname"><a href="setup__home__page__pp_8c.html#a2dc049611b8a6a5e649913c9ead4dc72">setup_home_page_pp</a></div><div class="ttdeci">void setup_home_page_pp(lv_ui *ui)</div><div class="ttdoc">创建 Picture 页</div><div class="ttdef"><b>Definition:</b> <a href="setup__home__page__pp_8c_source.html#l00048">setup_home_page_pp.c:48</a></div></div>
<div class="ttc" id="asetup__scr__home_8c_html_a9e86b57f14343f1fdf1b6450fbcdef08"><div class="ttname"><a href="setup__scr__home_8c.html#a9e86b57f14343f1fdf1b6450fbcdef08">setup_scr_home</a></div><div class="ttdeci">void setup_scr_home(lv_ui *ui)</div><div class="ttdoc">创建主桌面</div><div class="ttdef"><b>Definition:</b> <a href="setup__scr__home_8c_source.html#l00034">setup_scr_home.c:34</a></div></div>
<div class="ttc" id="asetup__scr__home_8c_html_ace6d825503d92b9fa25e9433e6a5e3e1"><div class="ttname"><a href="setup__scr__home_8c.html#ace6d825503d92b9fa25e9433e6a5e3e1">setup_style</a></div><div class="ttdeci">static void setup_style(lv_ui *ui)</div><div class="ttdef"><b>Definition:</b> <a href="setup__scr__home_8c_source.html#l00133">setup_scr_home.c:133</a></div></div>
<div class="ttc" id="astructimg__hash__t_html_a15a9da58fa9768c427dbd548764b2009"><div class="ttname"><a href="structimg__hash__t.html#a15a9da58fa9768c427dbd548764b2009">img_hash_t::img</a></div><div class="ttdeci">lv_img_dsc_t * img</div><div class="ttdoc">图片资源</div><div class="ttdef"><b>Definition:</b> <a href="image__source_8h_source.html#l00092">image_source.h:92</a></div></div>
<div class="ttc" id="astructlv__ui_html"><div class="ttname"><a href="structlv__ui.html">lv_ui</a></div><div class="ttdoc">UI 布局设计</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00130">ui.h:131</a></div></div>
<div class="ttc" id="astructlv__ui_html_a443081e2c977879eaf12f954fffa7e04"><div class="ttname"><a href="structlv__ui.html#a443081e2c977879eaf12f954fffa7e04">lv_ui::scr_home_tab_pd</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pd</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00157">ui.h:157</a></div></div>
<div class="ttc" id="astructlv__ui_html_a5ba3e04c43a1cef4a8884ed2c89afeed"><div class="ttname"><a href="structlv__ui.html#a5ba3e04c43a1cef4a8884ed2c89afeed">lv_ui::scr_home_tabview</a></div><div class="ttdeci">lv_obj_t * scr_home_tabview</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00138">ui.h:138</a></div></div>
<div class="ttc" id="astructlv__ui_html_a5cb7030d5d9d4b1c2e3c17d1cae676a7"><div class="ttname"><a href="structlv__ui.html#a5cb7030d5d9d4b1c2e3c17d1cae676a7">lv_ui::scr_home</a></div><div class="ttdeci">lv_obj_t * scr_home</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00136">ui.h:136</a></div></div>
<div class="ttc" id="astructlv__ui_html_a5cc771247e69bbcd2d61a76202df54f5"><div class="ttname"><a href="structlv__ui.html#a5cc771247e69bbcd2d61a76202df54f5">lv_ui::scr_home_tab_home_imgbtn_logo</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_home_imgbtn_logo</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00141">ui.h:141</a></div></div>
<div class="ttc" id="astructlv__ui_html_a6c822455c3ba88c294f4c62a8f4d8c61"><div class="ttname"><a href="structlv__ui.html#a6c822455c3ba88c294f4c62a8f4d8c61">lv_ui::scr_home_tab_home</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_home</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00140">ui.h:140</a></div></div>
<div class="ttc" id="astructlv__ui_html_ac79371e1c16255175f509d8a52875c42"><div class="ttname"><a href="structlv__ui.html#ac79371e1c16255175f509d8a52875c42">lv_ui::scr_home_img_bg</a></div><div class="ttdeci">lv_obj_t * scr_home_img_bg</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00137">ui.h:137</a></div></div>
<div class="ttc" id="astructlv__ui_html_acff0209e8aff7a55c43a3f32ded1f788"><div class="ttname"><a href="structlv__ui.html#acff0209e8aff7a55c43a3f32ded1f788">lv_ui::scr_home_tab_m0</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_m0</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00147">ui.h:147</a></div></div>
<div class="ttc" id="astructlv__ui_html_adaa8f29c768d6331f76fbc8a3489a02c"><div class="ttname"><a href="structlv__ui.html#adaa8f29c768d6331f76fbc8a3489a02c">lv_ui::scr_switch_flag</a></div><div class="ttdeci">scr_page_t scr_switch_flag</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00133">ui.h:133</a></div></div>
<div class="ttc" id="astructlv__ui_html_aeb626e7fdb99044ec046970e1a323f54"><div class="ttname"><a href="structlv__ui.html#aeb626e7fdb99044ec046970e1a323f54">lv_ui::scr_home_tab_pp</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_pp</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00162">ui.h:162</a></div></div>
<div class="ttc" id="astructlv__ui_html_af429e02400b85680d86bc9f3ca98fc1e"><div class="ttname"><a href="structlv__ui.html#af429e02400b85680d86bc9f3ca98fc1e">lv_ui::scr_home_tab_m4</a></div><div class="ttdeci">lv_obj_t * scr_home_tab_m4</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00152">ui.h:152</a></div></div>
<div class="ttc" id="aui_8h_html"><div class="ttname"><a href="ui_8h.html">ui.h</a></div><div class="ttdoc">UI 页面布局</div></div>
<div class="ttc" id="aui_8h_html_a60d66b4253393d5efcff7f9b3b61b187"><div class="ttname"><a href="ui_8h.html#a60d66b4253393d5efcff7f9b3b61b187">PLAY_MV</a></div><div class="ttdeci">#define PLAY_MV(x, y)</div><div class="ttdoc">简便写法–仅用于播放某固定视频源, 在不同区域位置显示</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00052">ui.h:52</a></div></div>
<div class="ttc" id="aui_8h_html_a982d37ceeb963441075094196ed5994ba8f280224da64e98f2d52d50ec43bc197"><div class="ttname"><a href="ui_8h.html#a982d37ceeb963441075094196ed5994ba8f280224da64e98f2d52d50ec43bc197">HOME</a></div><div class="ttdeci">@ HOME</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00106">ui.h:106</a></div></div>
<div class="ttc" id="aui_8h_html_ac0a0ec2ce739f6d59caa4619cdd123f9"><div class="ttname"><a href="ui_8h.html#ac0a0ec2ce739f6d59caa4619cdd123f9">GET_OFFSET_X</a></div><div class="ttdeci">#define GET_OFFSET_X(x, w, n)</div><div class="ttdoc">在[0, x]区间 : 对齐 n 个宽为 w 的 ICON =&gt; 均等取得每个 ICON 相对偏移 - x轴 [0 &lt;- (offset) -&gt; icon_w &lt;- (offset) -&gt; icon_w...</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00078">ui.h:78</a></div></div>
<div class="ttc" id="aui_8h_html_af3e9088ad151a8970bb55f57d35a66da"><div class="ttname"><a href="ui_8h.html#af3e9088ad151a8970bb55f57d35a66da">GET_Y</a></div><div class="ttdeci">#define GET_Y(i, s, h, offset)</div><div class="ttdoc">在[s, s + y]区间 : 按 offset 偏移对齐高为 h 的 ICON =&gt; 得出对齐第 i 个 ICON 的绝对位置 - y轴</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00100">ui.h:100</a></div></div>
<div class="ttc" id="aui_8h_html_af5ff5bf99f6040aa647643d0578071d6"><div class="ttname"><a href="ui_8h.html#af5ff5bf99f6040aa647643d0578071d6">GET_OFFSET_Y</a></div><div class="ttdeci">#define GET_OFFSET_Y(y, h, n)</div><div class="ttdoc">在[0, y]区间 : 对齐 n 个高为 h 的 ICON =&gt; 均等取得每个 ICON 相对偏移 - y轴 [0 &lt;- (offset) -&gt; icon_h &lt;- (offset) -&gt; icon_h...</div><div class="ttdef"><b>Definition:</b> <a href="ui_8h_source.html#l00094">ui.h:94</a></div></div>
<div class="ttc" id="aui__event_8c_html_aab07f167804a29f9a34de078552c2fee"><div class="ttname"><a href="ui__event_8c.html#aab07f167804a29f9a34de078552c2fee">events_init_scr_home</a></div><div class="ttdeci">void events_init_scr_home(lv_ui *ui)</div><div class="ttdoc">主桌面注册事件回调</div><div class="ttdef"><b>Definition:</b> <a href="ui__event_8c_source.html#l00389">ui_event.c:389</a></div></div>
<div class="ttc" id="aui__event_8h_html"><div class="ttname"><a href="ui__event_8h.html">ui_event.h</a></div><div class="ttdoc">UI 页面事件回调</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
